{% extends "base.html" %}
{% load i18n %}

{% autoescape off %}
{% block title %}{{ title }}{% endblock %}
{% block sub_title %}{{ sub_title }} {% endblock %}

{% block intro %}
<div class="floatbox">
{% if image_url %}
  <div style="float:left;">
  {% if image_url_url %}
    <a href="{{ image_url_url }}"{% if image_extern %} target="_extern"{% endif %}><img 
       src="{{ image_url }}" alt="{% trans "Schmuckbild" %}"
       class="image-float-right" /></a>
  {% else %}
    <img src="{{ image_url }}" alt="{% trans "Schmuckbild" %}"
       class="image-float-right" />
  {% endif %}
  </div>
{% endif %}
{% if text or exercise_text %}
<div class="comments">
  {{ text }}
  {% if text_more %}
    <script type="text/javascript">
    function do_show_more () {
      document.getElementById("show_more").style.display="none";
      document.getElementById("text_more").style.display="inline";
      document.getElementById("show_less").style.display="inline";
    }
    function do_hide_more (id) {
      document.getElementById("text_more").style.display="none";
      document.getElementById("show_less").style.display="none";
      document.getElementById("show_more").style.display="inline";
    }
    </script>
    <p>
      <a id="show_more" class="navLink" 
         href="javascript:void(0)" onClick="do_show_more()"
         title="{% trans "Weitere Informationen ..." %}"><img
         src="{{ base_site_url }}/dms_media/image/action/more_icon.gif" 
         title="{% trans "Ein/Ausblende-Symbol" %}" />&nbsp;{% trans "Mehr ..." %}</a>
      <a id="show_less" class="navLink" style="display:none"
         href="javascript:void(0)" onClick="do_hide_more()"
         title="{% trans "Zusammenfalten ..." %}"><img
         src="{{ base_site_url }}/dms_media/image/action/more_icon.gif" 
         title="{% trans "Ein/Ausblende-Symbol" %}" />&nbsp;{% trans "Weniger ..." %}</a>
    </p>
    <div id="text_more" style="display:none">
    {{ text_more }}
    </div>
  {% endif %}
  <ul>
  {{ exercise_text }}
  </ul>
  <h5>{% trans "Notenspiegel" %}</h5>
  {{ points_text }}
</div>
{% endif %}
</div>
<br />
{% endblock %}

{% block content %} {{ content }} {% endblock %}
{% endautoescape %}
